{include file="header.html"}
<div id="rightTop">
    <p>{$lang.discus}</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
       
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="discus" />
                <input type="hidden" name="act" value="index" />
               
                {$lang.order_sn}:
                <input class="queryInput" type="text" name="order_sn" value="{$query.order_sn|escape}" /> 
                {$lang.buyer_name}:
                <input class="queryInput" type="text" name="buyer_name" value="{$query.buyer_name|escape}" />     
                {$lang.seller_name}:
                <input class="queryInput" type="text" name="seller_name" value="{$query.seller_name|escape}" />                  
                <input type="submit" class="formbtn"style="cursor: pointer;" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=discus">{$lang.cancel_query}</a>
            <!--{/if}-->
      <span>
              </span></form>
    </div>
    <div class="fontr">
        {if $discus_list}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $discus_list}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
               <td align="left"  width="120">{$lang.order_sn}</td>
               <td align="left"  width="120">{$lang.buyer_name}</td>
               <td align="left"  width="120">{$lang.buyer_type}</td>
               <td align="left"  width="120">{$lang.buyer_addtime}</td>
               <td align="left"  width="120">{$lang.seller_name}</td>
               <td align="left"  width="120">{$lang.seller_type}</td>
               <td align="left"  width="120">{$lang.seller_addtime}</td>
               <td align="left"  width="120">{$lang.status}</td>
               <td align="left"  width="120">{$lang.admin_addtime}</td>
            <td class="handler">{$lang.handler}</td>
        </tr>
        <!--{/if}-->

        <!--{foreach from=$discus_list item=discus}-->
        <tr class="tatr2">
            <td class="firstCell"><input value="{$discus.id}" class='checkitem' type="checkbox" /></td>
                 <td align="left"><a href="{url app=order&act=view&id=$discus.order_id}" >{$discus.order_sn}</a></td>
                 <td align="left">{$discus.buyer_name}</td>
                 <td align="left">{$lang[$discus.buyer_type]}</td>
                 <td align="left">{$discus.buyer_addtime|date:Y-m-d}</td>
                 <td align="left">{$discus.seller_name}</td>
                 <td align="left">{$lang[$discus.seller_type]}</td>
                 <td align="left">{$discus.seller_addtime|date:Y-m-d}</td>
                 <td align="left">{$discus_status[$discus.status]}</td>
                 <td align="left" >{$discus.admin_addtime|date:Y-m-d}</td>
          
            <td class="handler">
              <a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=discus&amp;act=drop&amp;id={$discus.id}');">{$lang.drop}</a> <br>   <a href="index.php?app=discus&amp;act=view&id={$discus.id}"> {$lang.view}</a>  {if $discus.status neq 4}|  <a href="index.php?app=discus&amp;act=change_money&id={$discus.id}"> {$lang.refund}</a>{/if}
          
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $discus_list}-->
    <div id="dataFuncs">
        <div id="batchAction" class="left paddingT15">
           
            <input class="formbtn batchButton" type="button"style="cursor: pointer;" value="{$lang.drop}" name="id" uri="index.php?app=discus&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
           
        </div>
        <div class="pageLinks">
            {if $discus_list}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <!--{/if}-->
    <div class="clear"></div>
</div>
{include file="footer.html"}
